package class

import (
	"fmt"
	"gitee.com/game_diamond/consts"
	"gitee.com/game_diamond/protocols"
	"gitee.com/game_diamond/server"
	"gitee.com/game_diamond/srvws/common"
)

func init() {
	server.RegisterWsAction(consts.ActorStudent, consts.ActionStudentClientCourseLearn, ActionStudentClassLearn)
}

func ActionStudentClassLearn(studentId int, body *protocols.WebSocketBody) {
	ss, err := common.GetStudentAiRoomSession(studentId)
	if err != nil {

	}
	//逻辑处理
	//...
	//...
	fmt.Println(ss.NodeStat)

	common.SendMessageToUser(0, body, studentId)
}
